<template>
  <div class="card">
    <img :src="item.pic" alt="" />
    <h1>{{ item.name }}</h1>
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
import { useStore } from "vuex";
import { useRouter, useRoute } from "vue-router";
export default {
  props: ["item"],
  setup(props, ctx) {
    const store = useStore();
    const router = useRouter();
    const route = useRoute();
    const data = reactive({});
    return { ...toRefs(data) };
  },
};
</script>

<style lang="scss">
.card {
  width: 100%;
  display: flex;
  img {
    width: 50px;
    height: 50px;
  }
}
</style>
